URL = "http://sourceforge.net/projects/vbrowser/files/vbrowser/%(VERSION)s/vb.%(VERSION)s.zip"

DEFAULT_VERSION = "3.3.0"
VERSIONS = ["3.3.0"]
DEPENDS = ["qt4osmin"]

import os, shutil
from source.builders import QMakeBuilder
from source.machine import Tools

class ValueBrowserBuilder( QMakeBuilder ):

  def configureparameters(self):
    return ["CONFIG+=dll",
            "CONFIG+=debug",
	    "DEFINES+=LIBVB4_LIB",
	    "DEFINES+=QT_DLL"]

  def configure(self ):
    self.extractedpathbase = self.extractedpath
    self.extractedpath = os.path.join(self.extractedpath, 'build')
    QMakeBuilder.configure(self)

  def install(self ):
    os.chdir( self.extractedpathbase )
    self.copydir( "include", self.targetpath()+"/include" )
    self.copydir( "lib", self.targetpath()+"/lib" )

BUILDER = ValueBrowserBuilder

